import request from '@/utils/request'

// 查询DXC原料列表
export function listRm(query) {
  return request({
    url: '/safety/rm/list',
    method: 'get',
    params: query
  })
}

// 查询DXC原料详细
export function getRm(id) {
  return request({
    url: '/safety/rm/' + id,
    method: 'get'
  })
}

// 新增DXC原料
export function addRm(data) {
  return request({
    url: '/safety/rm',
    method: 'post',
    data: data
  })
}

// 修改DXC原料
export function updateRm(data) {
  return request({
    url: '/safety/rm',
    method: 'put',
    data: data
  })
}

// 删除DXC原料
export function delRm(id) {
  return request({
    url: '/safety/rm/' + id,
    method: 'delete'
  })
}
